package br.com.xti.estudo.logica;

public class Fibonacci {


	public static void main(String[] args) {

		int[] fibonacci = { 0, 1, 1};

		
		while(fibonacci[0] <= 2584)
		{
			System.out.println(fibonacci[0]);
			fibonacci[2] = fibonacci[0] + fibonacci[1];
			fibonacci[0] = fibonacci[1];
			fibonacci[1] = fibonacci[2];
			
			
			
			
			

			
			
			
		}
	}

}
